package com.onehouse.infrastructure.dao;

import com.onehouse.infrastructure.dao.po.Room;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RoomDao {
    int insert(Room room);
    int update(Room room);
    Room selectByRoomNumber(@Param("roomNumber") String roomNumber);
    List<Room> selectList();
    int deleteByNumber(@Param("roomNumber") String roomNumber);
    int deleteById(@Param("roomId") Long roomId);
    boolean existedById(@Param("typeId") Long typeId);
    Room selectById(@Param("roomId") Long roomId);
}
